package com.mingqi.enetconnected.util.log;

import android.util.Log;


/**
 * log工具类
 * @author liwei
 *
 */
public class LogUtils {

	private static boolean isDebug = true;
	public static String TAG = "--TAG--";

	public static void controlDebug(boolean isDebug){

		LogUtils.isDebug = isDebug;
	}

	public static void d(String tag, String msg) {

		if (isDebug) {
			Log.d(TAG + tag, msg);
		}
	}
	public static void d(String tag, String msg, Throwable e) {

		if (isDebug) {
			Log.d(TAG + tag, msg,e);
		}
	}

	public static void e(String tag, String msg) {

		if (isDebug) {
			Log.e(TAG + tag, msg);
		}
	}

	public static void e(String tag, String msg, Throwable e) {

		if (isDebug) {
			Log.e(TAG + tag, msg,e);
		}
	}
}
